package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.enums.ApprovalTypeEnum;
import com.sc.nft.enums.DepositWithdrawalRecordPayStatusEnum;
import com.sc.nft.enums.DepositWithdrawalRecordStatusEnum;
import com.sc.nft.enums.DepositWithdrawalRecordTypeEnum;
import com.sc.nft.sup.SuperEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * (sc_deposit_withdrawal_record)实体类
 *
 *  充提记录表
 *
 * @author Sun
 * @since 2022-09-07 12:59:49
 * @description 由 Mybatisplus Code Generator 创建
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
    @TableName("sc_deposit_withdrawal_record")
public class DepositWithdrawalRecord extends SuperEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 类型 1:充值 2:提取
     */
    private DepositWithdrawalRecordTypeEnum type;

    /**
     * 审核状态 1:通过审核 2:审核中  3:失败
     */
    private DepositWithdrawalRecordStatusEnum status;
    /**
     * 支付状态 1:成功 2:处理中 3:失败
     */
    private DepositWithdrawalRecordPayStatusEnum payStatus;
    /**
     * 金额
     */
    private BigDecimal amount;
    /**
     * 手续费
     */
    private BigDecimal charge;
    /**
     * 实际金额
     */
    private BigDecimal realAmount;
    /**
     * 订单id
     */
    private Long orderId;
    /**
     * 订单号
     */
    private String orderNo;
    /**
     * 审批时间
     */
    private Date approvalTime;
    /**
     * 转账时间
     */
    private String transferTime;
    /**
     * 身份证号
     */
    private String identityNo;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 拒绝原因
     */
    private String remark;
    /**
     * 银行卡号
     */
    private String cardNo;

    /**
     * 银行名称
     */
    private String bankName;

    /**
     * 卡姓名
     */
    private String name;

    /**
     * 失败原因
     */
    private String cause;

    /**
     * 审批类型 1:系统审批 2:人工审批
     */
    private ApprovalTypeEnum approvalType;

    /**
     * 是否已退费
     */
    private Boolean isRefund;

}